﻿using System.Collections.Generic;
using System.Drawing;


namespace NeuronDotNet.Samples.OCR.layoutsstategies
{
  ///// <summary>
  ///// This class realized strategy 
  ///// for devide drawing field by costant part(n) now unused.
  ///// </summary>
  //public class FixedStrategy : LayoutStrategy
  //{
  //  #region private field
  //  private readonly int n;
  //  #endregion

  //  #region constructor
  //  public FixedStrategy(Rectangle imageRect, int n)
  //    : base(imageRect)
  //  {
  //    this.n = n;
  //  }
  //  #endregion

  //  #region public method
  //  /// <summary>
  //  /// Devide drawing fields by n part.
  //  /// </summary>
  //  public override List<Rectangle> GetDivision()
  //  {
  //    var rects = new List<Rectangle>();

  //    int partWidth = imageRect.Width / n;

  //    for (int i = 0; i < n; i++)
  //    {
  //      var rect = new Rectangle(imageRect.Left + i * partWidth,
  //        imageRect.Top, partWidth,
  //        imageRect.Height);
  //      rects.Add(rect);
  //    }

  //    return rects;
  //  }
  //  #endregion
  //}
}
